/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.bis.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * bis_userEntity
 * @author Zhangning
 * @version 2019-08-22
 */
@Table(name="bis_user", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="id_card", attrName="idCard", label="id_card"),
		@Column(name="openid", attrName="openid", label="openid", queryType=QueryType.EQ),
		@Column(name="name", attrName="name", label="name", queryType=QueryType.LIKE),
		@Column(name="mobile_phone", attrName="mobilePhone", label="mobile_phone", queryType=QueryType.LIKE),
		@Column(name="nick_name", attrName="nickName", label="nick_name", queryType=QueryType.LIKE),
		@Column(name="head_image_url", attrName="headImageUrl", label="head_image_url"),
		@Column(name="sex", attrName="sex", label="sex"),
		@Column(name="province", attrName="province", label="province"),
		@Column(name="city", attrName="city", label="city"),
		@Column(name="country", attrName="country", label="country"),
		@Column(name="language", attrName="language", label="language"),
		@Column(name="session_id", attrName="sessionId", label="session_id"),
		@Column(name="create_by", attrName="createBy", label="创建者", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="更新者", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
		@Column(name="remarks", attrName="remarks", label="备注信息", queryType=QueryType.LIKE),
	}, orderBy="a.update_date DESC"
)
public class BisUser extends DataEntity<BisUser> {
	
	private static final long serialVersionUID = 1L;
	private String idCard;		// 身份证号
	private String openid;		// openid
	private String name;		// name
	private String mobilePhone;		// mobile_phone
	private String nickName;		// nick_name
	private String headImageUrl;		// head_image_url
	private Long sex;		// sex
	private String province;		// province
	private String city;		// city
	private String country;		// country
	private String language;		// language
	private String sessionId;		// session_id
	
	public BisUser() {
		this(null);
	}

	public BisUser(String id){
		super(id);
	}
	
	@Length(min=0, max=64, message="openid长度不能超过 64 个字符")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=100, message="name长度不能超过 100 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=20, message="mobile_phone长度不能超过 20 个字符")
	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	
	@Length(min=0, max=100, message="nick_name长度不能超过 100 个字符")
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	@Length(min=0, max=200, message="head_image_url长度不能超过 200 个字符")
	public String getHeadImageUrl() {
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		this.headImageUrl = headImageUrl;
	}
	
	public Long getSex() {
		return sex;
	}

	public void setSex(Long sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=100, message="province长度不能超过 100 个字符")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=100, message="city长度不能超过 100 个字符")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=100, message="country长度不能超过 100 个字符")
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	@Length(min=0, max=100, message="language长度不能超过 100 个字符")
	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}
	
	@Length(min=0, max=64, message="session_id长度不能超过 64 个字符")
	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
}